package cn.elvea.domain;

import java.io.Serializable;

public class Resource extends IdEntity implements Serializable {
    public final static String Type_Url = "URL";
    public final static String Type_Menu = "MENU";
    private Long id;
    private String name;
    private String type;
    private String url;
    private String permission;

    @Override
    public Long getId() {
        return id;
    }

    @Override
    public void setId(Long id) {
        this.id = id;
    }

    public static String getType_Url() {
        return Type_Url;
    }

    public static String getType_Menu() {
        return Type_Menu;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getPermission() {
        return permission;
    }

    public void setPermission(String permission) {
        this.permission = permission;
    }
}
